import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import { Message } from 'element-ui'
import GlobalConstants from './constants/Global.Constants'

import api from './api/api'

// dev 
// eslint-disable-next-line no-unused-vars
// import mock from './mock/mock'

// 公共css
import '@/assets/css/checkbox.css'
import '@/assets/css/font-awesome/css/font-awesome.min.css'
import 'element-ui/lib/theme-chalk/index.css'

// ElementUI
Vue.use(ElementUI)

// unknwon
Vue.config.productionTip = false

// constants
Vue.prototype.GlobalConstants = GlobalConstants

// $api
Vue.prototype.$api = api

// element ui 
Vue.prototype.$message = Message

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
